package com.gosophia.metadataEngine.action;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.gosophia.commons.web.action.BaseAjaxAction;
import com.gosophia.metadataEngine.dto.MetaDataTableDto;
import com.gosophia.metadataEngine.ws.MetadataEngineWebService;

/**
 * 查看指定数据源下的元数据表页面
 * @author wangxinbing
 * @since 2011-5-6
 */
@Controller("GetMetadataTablePageAction")
@Scope("prototype")
public class GetMetadataTablePageAction extends BaseAjaxAction<MetaDataTableDto>{

	private Long dataSourceInfoId;
	
	@Autowired
	private MetadataEngineWebService metadataEngineWebService;

	public Long getDataSourceInfoId() {
		return dataSourceInfoId;
	}

	public void setDataSourceInfoId(Long dataSourceInfoId) {
		this.dataSourceInfoId = dataSourceInfoId;
	}
	
	
	public String _execute(){
		page = metadataEngineWebService.findMetadataTablePageByDataSourceInfoId(dataSourceInfoId,page,searchString,orderConditions);
		return SUCCESS;
	}

	@Override
	public MetaDataTableDto getDetailData() {
		return null;
	}
}
